//
//  FWMeService.m
//  BirdLoveSheep
//
//  Created by wwj on 16/4/12.
//  Copyright © 2016年 wwj. All rights reserved.
//

#import "FWMeService.h"

@implementation FWMeService
+ (NSURLSessionDataTask *)getMeFooterDataWith:(FWMeRequest *)request success:(void (^)(FWMeResponse *))success failure:(void (^)(NSError *))failure{
    return [FWHttpUtil getWithURL:KBaseURL params:request.mj_keyValues success:^(id responseObject) {
        if (success) {
            FWMeResponse *data = [FWMeResponse mj_objectWithKeyValues:responseObject];
            success(data);
        }
    } failure:^(NSError *error) {
        if (failure) {
            failure(error);
        }
    }];
}
@end
